﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace TrafficSimulation
{
    
    public abstract class TrafficLight
    {
        protected int width,length;
        protected int xPos, yPos, greenTrafficTime, redTrafficTime;
        protected Color color;

        #region Functions
        public void setSize(double size)
        {
            this.width = 20;
            this.length = (this.width) * 3;
        }

        public abstract void paintBulb(Graphics g);
        public abstract void ManageLights(int greenTime);
        public abstract void drawFrame(Graphics g);
        public abstract void switchColor();

        public void adjustCarGreenTrafficLight(int greenTime)
        {
            greenTrafficTime = greenTime;
        }
#endregion 
        #region Properties
        public Cross Cross
        {
            get { return null; }
        }
        public Color Color
        {
            get { return color; }
            set { color = value; }
        }
        #endregion
    }
}
